﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.UI;
using System.ComponentModel;


namespace MVCnExt.Controllers
{
    public class GridController : Controller
    {
        public ActionResult Index()
        {
            ViewData["Title"] = "Simplify ExtJs for ASP.Net MVC";
            ViewData["Message"] = "Welcome to mvcnext.com";

            return View();
        }       

        public ActionResult List()
        {
            //var selectList = new SelectList(customerFactory.RetreiveAll(), "CustomerID", "CompanyName");
            ViewData["Title"] = "Grid Page";

            return View();
        }

        public ActionResult Inline()
        {
            //var selectList = new SelectList(customerFactory.RetreiveAll(), "CustomerID", "CompanyName");
            ViewData["Title"] = "Example of Grid Manual Data";

            return View();
        }

        public ActionResult XMLLoader()
        {
            //var selectList = new SelectList(customerFactory.RetreiveAll(), "CustomerID", "CompanyName");
            ViewData["Title"] = "Example of XML Loader";

            return View();
        }

        public ActionResult Grouping()
        {
            //var selectList = new SelectList(customerFactory.RetreiveAll(), "CustomerID", "CompanyName");
            ViewData["Title"] = "Example of Grouping Grid";

            return View();
        }

        public ActionResult Property()
        {
            //var selectList = new SelectList(customerFactory.RetreiveAll(), "CustomerID", "CompanyName");
            ViewData["Title"] = "Example of Property Grid";

            return View();
        }

        public ActionResult Editor()
        {
            //var selectList = new SelectList(customerFactory.RetreiveAll(), "CustomerID", "CompanyName");
            ViewData["Title"] = "Example of Editor Grid";

            return View();
        }

        public ActionResult Loader()
        {
            //var selectList = new SelectList(customerFactory.RetreiveAll(), "CustomerID", "CompanyName");
            ViewData["Title"] = "Example of Array Loader";

            return View();
        }
    
    }   
}
